/* cards.css - Improved Version */
.cards {
    margin: 0 auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    font-family: sans-serif;
    margin-bottom: 15px;
}

.cards * {
    box-sizing: border-box;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px; /* Added rounded corners */
    background: #fff;
    transition: transform 250ms ease, box-shadow 250ms ease; /* Smooth hover effect */
    overflow: hidden; /* Ensures images respect border radius */
}

.card:hover {
    transform: translateY(-5px); /* Subtle lift effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

.card__img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 245px; /* Fixed height for consistency */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
}

.card__content {
    line-height: 1.6; /* Improved readability */
    font-size: 1em; /* Slightly larger text */
    padding: 20px; /* Increased padding */
    color: #333;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card__content > p {
    color: #444;
    margin: 0;
    height: 100%;
}

.card__info {
    padding: 15px 20px; /* Consistent padding */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align link to the right */
    background: #f8f9fa; /* Lighter background */
    border-top: 1px solid #eee; /* Subtle separator */
    margin-top: auto;
}

.card__link {
    color: #f7b948; /* Brand color consistency */
    text-decoration: none;
    font-weight: 600; /* Bold text */
    transition: color 250ms ease;
}

.card__link:hover {
    color: #d89c3a; /* Darker shade on hover */
    text-decoration: underline;
}

.blog {
    margin-top: 5rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .cards {
        gap: 25px;
        padding: 0 15px;
    }

    .card__img {
        height: 200px; /* Smaller image height for mobile */
    }
}